body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
header {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-bottom: 30px;
}
h1 {
    margin: 0;
}
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.control-panel {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.display-panel {
    flex: 2;
    min-width: 640px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}
.option-group {
    margin-bottom: 25px;
}
.option-title {
    font-weight: bold;
    margin-bottom: 10px;
}
.radio-group {
    margin-left: 10px;
}
.radio-option {
    display: block;
    margin-bottom: 10px;
}
.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}
video, canvas {
    width: 100%;
    height: auto;
    max-height: 480px;
    background-color: #222;
    border-radius: 4px;
}
.canvas-stack {
    position: relative;
    width: 100%;
    height: 480px;
}
.canvas-stack canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#originalCanvas {
    z-index: 1;
}
#resultCanvas {
    z-index: 2;
}
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    transition: background-color 0.3s;
}
button:hover {
    background-color: #0069d9;
}
button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}
.status {
    margin-top: 20px;
    font-style: italic;
    color: #6c757d;
}
.error {
    color: #dc3545;
}
.fps-display {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 3;
}